package com.dailyblue.example.project.bookstore.book.feign.impl;

import com.dailyblue.example.project.bookstore.book.feign.CategoryFeign;
import com.dailyblue.example.project.bookstore.commons.bean.Category;
import com.dailyblue.example.project.bookstore.commons.util.JsonResult;
import com.dailyblue.example.project.bookstore.commons.util.ResultTool;
import org.springframework.stereotype.Component;

@Component
public class CategoryFeignFallback implements CategoryFeign {
    @Override
    public JsonResult<Category> find(String id) {
        throw new RuntimeException();
        //return ResultTool.fail(501, "出现了错误");
    }
}
